package com.g001.service;

import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.SlickException;
import org.newdawn.slick.state.StateBasedGame;

import com.g001.enums.MessagePositionType;
import com.g001.model.GUI.BattleZone;

public class BattleZoneService {
	
	
	private BattleZone leftZone;
	private BattleZone rightZone;
	
	public void init(GameContainer container, StateBasedGame game) throws SlickException{
		leftZone = new BattleZone("data/g001/battleArenaLeft.png", MessagePositionType.LEFT);
		rightZone = new BattleZone("data/g001/battleArenaLeft.png", MessagePositionType.RIGHT);
	}
	
	public void render(GameContainer container, StateBasedGame game, Graphics g) throws SlickException {
		leftZone.render(container, game, g);
		rightZone.render(container, game, g);
	}
	
	public void update(GameContainer container, StateBasedGame game, int delta) throws SlickException {
		leftZone.update(container, game, delta);
		rightZone.update(container, game, delta);
	}

}
